import autopy
import time
while True:
    a,b = autopy.mouse.get_pos()
    print a,b
    time.sleep(1)
